package com.frain.springcloud.hystrix;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * 
 * @ClassName: HystrixApplication 
 * @Description: 本工程用来测试hystix 在eureka中的使用
 * @author frain
 * @date 2018年8月6日 上午10:25:45 
 *
 */
@SpringBootApplication
@EnableFeignClients
// 启用熔断机制
@EnableCircuitBreaker
@EnableEurekaClient
public class HystrixApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(HystrixApplication.class).web(true).run(args);
    }

}
